paged and cursor should preserve null and missing sort order in both directions